package com.apimarket.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * 申请实体类
 *
 * @author xuyang
 */
@Data
@Table(name = "application")
public class Apply {
    private Integer id;
    /**
     * 申请id
     */
    @Column(name = "set_id")
    private String setId;
    /**
     * 数据块id
     */
    @Column(name="dataset_id")
    private String datasetId;
    /**
     * 所申请的api集id
     */
    @Column(name = "user_id")
    private String userId;
    /**
     * 申请者id
     */
    private String content;
    /**
     * 申请内容
     */
    @Column(name = "pic_urls")
    private String picUrls;
    /**
     * 附录图片地址
     */
    private Integer state=1;
    /**
     * 审核状态 1：审核中；2：驳回 3：审核通过;4：已失效
     */
    @Column(name = "examine_id")
    private String examineId;
    /**
     * 审核者id
     */
    @JsonFormat( pattern = "yyyy-MM-dd " +
            "HH:mm:ss",timezone = "GMT+8")
    @Column(name = "date")
    private Date date;/** 最新修改时间*/

    /**
     * 该用户在一年内对这个接口集的使用次数
     */
    private Integer times;
    /**
     * 审核批语
     */
    private String message;

}
